package com.gs.lookupmethod;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.gs.lookupmethod.beanaware.CommandManager;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:spring-test-config.xml")
public class LookupByBeanAware {
	
	@Autowired
	CommandManager commandManager;
	
	@Test
	public void checkIt(){
		System.out.println("Yay!");
		System.out.println(commandManager);
		for(int i=0; i<5;i++)
			System.out.println(commandManager.createCommand());
	}
}
